﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using TicketSellerService;

namespace FlightSearchServer
{
    [ServiceContract]
    interface IFlightSearchService
    {
        [OperationContract]
        [FaultContract(typeof(Exception))]
        AvailableFlights flightSearch( string source, string destination, DateTime date);

        [OperationContract]
        [FaultContract(typeof(Exception))]
        TicketReservation flightReserve( string vendorName, string flightNum, DateTime date);

        [OperationContract]
        [FaultContract(typeof(Exception))]
        string reservationCancel(string vendorName, string reservationId);
    }
}
